home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Programmer Disk
/
The Programmer Disk (Microforum).iso
/
xpro
/
vc
/
pro3
/
mod1-1.c
< prev
next >
Wrap
Text File
|
1993-06-10
|
4KB
|
73 lines
===========================================================================
BBS: The Abacus * HST/DS * Potterville, MI
Date: 06-06-93 (11:26) Number: 217
From: DANIEL LYNES Refer#: NONE
To: MATTHEW O'CONNOR Recvd: NO
Subj: Mod File Routines 1/4 Conf: (36) C Language
---------------------------------------------------------------------------
MO>Hello. I have a very simple question. Does ANYONE have any info on MO>writi
ng programs that will play .MOD module files on a PC??? I would MO>greatly appr
eciate some assistance in this matter, since the only info I MO>programs Ims I h
ave for this sort of programming is rather
crummy! If you
Try PPS.ARJ (assembly source to Mod Play Pro for TASM 2.0), or,
here's the source for some kind of MOD player:
Well, follows the code and header to access the MOD files. However, for the rou
tines to access the Soundblaster, if you're not worried about portability to sou
ndblaster compatible sound cards, you can try any one of a number of soundblaste
r shareware libraries, or the BIOS routines in the miscellaneous API section of
Ralf Brown's
interrupt list. If you want any of the shareware libraries, just ask...I've got
'em for Pascal, C and assembly.
/***********************************************************************/ /*@-=#
=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#@*/ /*#+--------
------------------------^--------------------------------+#*/ /*||
Mod File Routines ||*/ /*#|
Written by Kirk Smith |#*/ /*||
||*/ /*#| This file reads the modfile
named in the by "name" var in |#*/ /*|| the main routine. The author makes n
o warrenty or guarantee on ||*/ /*#| the code here in. Furthermore, any damage
from use is not |#*/ /*|| liable to the author (use at own risk). This is
a copyrighted ||*/ /*#| program that is freely available for educational reason
s only. |#*/ /*|| Use of this code in ANY shareware/commercial program is
||*/ /*#| prohibited, with out written concent from the author. Use in |#*
/ /*|| FREE public domain programs is granted if the author and copy ||*/ /*#|
right notices are visibly displayed in both the documantation |#*/ /*|| and i
n program exectution. ||*/ /*#|
|#*/ /*|| Copyrigh
t 1993 MS-Production ||*/ /*#|
Kirk Smith |#*/ /*|| (1:10
5/290.7) ||*/ /*#|
|#*/ /*|| This file should be compiled in the HU
GE memory model. ||*/ /*#| It will load the instament info, mod file name
, and the |#*/ /*|| tracks into the structure.
||*/ /*#|
|#*/ /*|| Hope this helps. |
|*/ /*#| |#*/ /*
|| ||*/ /*#+----
----------------------------^--------------------------------+#*/ /*@-=#=-=#=-=#
=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#=-=#@*/ /*******************
****************************************************/
#define MAXTRACK 64 /* 64 Tracks per song */
/* On my machine, I ran out of ram running it under compiler.
When I quit out and then ran it, it ran fine */
#define MAXPAT 128 /* 128 pattern elements */
#define MAXINST 31 /* 31 Instraments */
#define MAXNOTES 64 /* 64 notes per track */
#define MAXCHAN 4 /* 4 channels per song */
#define word unsigned int
#define byte unsigned char
* SLMR 2.1a * Beware! I'm armed and have premenstrual tension.
--- SLMAIL v3.0 (#0272)
* Origin: Thunder Bay, Ontario, Canada (1:229/516)
SEEN-BY: 1/211 11/2 4 13/13 101/1 108/89 109/25 110/69 114/5 123/19 124/1
SEEN-BY: 153/752 154/40 77 157/110 159/100 125 430 575 950 203/23 209/209
SEEN-BY: 261/1023 280/1 390/1 396/1 5 15 2270/1 2440/5 3603/20